package com.millstein.eduservice.client;

import com.millstein.commonutils.Result;
import com.millstein.eduservice.client.hystrix.VodFileDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-vod", fallback = VodFileDegradeFeignClient.class)
public interface VodClient {

    /**
     * 调用service-vod中的方法删除阿里云中的视频
     * @param id
     * @return
     */
    @DeleteMapping("/eduvod/vod/{id}")
    public Result removeAliyunVideo(@PathVariable("id") String id);
}
